<?php

$data = file_get_contents("http://news.cctv.com/xwj/index.shtml");

$preg = "/var obj =(\[.+?\])/s";


$c = preg_match_all($preg,$data,$out);


var_dump($c,$out);

file_put_contents("./db.txt",$out[1][0]);